package com.inspector.app.ui.task
import androidx.databinding.BindingAdapter
import com.scwang.smart.refresh.layout.SmartRefreshLayout

object SmartRefreshLayoutBindingAdapter {

    @JvmStatic
    @BindingAdapter("srlEnableAutoLoadMore")
    fun setEnableAutoLoadMore(layout: SmartRefreshLayout, enable: Boolean) {
        layout.setEnableAutoLoadMore(enable)
    }

    @JvmStatic
    @BindingAdapter("srlEnableLoadMore")
    fun setEnableLoadMore(layout: SmartRefreshLayout, enable: Boolean) {
        layout.setEnableLoadMore(enable)
    }

    @JvmStatic
    @BindingAdapter("srlEnableOverScrollDrag")
    fun setEnableOverScrollDrag(layout: SmartRefreshLayout, enable: Boolean) {
        layout.setEnableOverScrollDrag(enable)
    }
}
